#ifndef _BSP_USART_H
#define _BSP_USART_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "main.h"

#define DEBUG_USART_BAUDRATE                    115200

#define DEBUG_USART                             USART3
#define DEBUG_USART_CLK_ENABLE()                LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_USART3)

#define DEBUG_USART_RX_GPIO_PORT                GPIOB
#define DEBUG_USART_RX_GPIO_CLK_ENABLE()        LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_GPIOB)
#define DEBUG_USART_RX_PIN                      LL_GPIO_PIN_11
#define DEBUG_USART_RX_AF                       LL_GPIO_AF_2

#define DEBUG_USART_TX_GPIO_PORT                GPIOB
#define DEBUG_USART_TX_GPIO_CLK_ENABLE()        LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_GPIOB)
#define DEBUG_USART_TX_PIN                      LL_GPIO_PIN_10
#define DEBUG_USART_TX_AF                       LL_GPIO_AF_2

#define DEBUG_USART_IRQHandler                  USART3_IRQHandler
#define DEBUG_USART_IRQ                         USART3_IRQn

#ifdef __cplusplus
}
#endif

#endif /* _BSP_USART_H */
